package com.ruoyi.system.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资采购明细对象 t_purchase_detail
 * 
 * @author ruoyi
 * @date 2023-12-22
 */
@ApiModel("物资采购明细对象")
public class TPurchaseDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private String pkMaterial;
    /** 单据ID */
    @ApiModelProperty(name = "单据ID")
    private String purchaseId;

    @ApiModelProperty(name = "仓库")
    private String stash;

    /** 物资编号 */
    @ApiModelProperty(name = "物资编号")
    private String code;

    /** 物资名称 */
    @ApiModelProperty(name = "物资名称")
    private String name;

    /** 规格 */
    @ApiModelProperty(name = "规格")
    private String materialspec;

    /** 单位 */
    @ApiModelProperty(name = "单位")
    private String measdoc;

    /** 数量 */
    @ApiModelProperty(name = "数量")
    private Integer nastnum;

    /** 单价 */
    @ApiModelProperty(name = "单价")
    private BigDecimal price;

    /** 含税单价 */
    @ApiModelProperty(name = "含税单价")
    private BigDecimal taxPrice;

    /** 税额 */
    @ApiModelProperty(name = "税额")
    private BigDecimal tax;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPurchaseId(String purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public String getPurchaseId() 
    {
        return purchaseId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMaterialspec(String materialspec) 
    {
        this.materialspec = materialspec;
    }

    public String getMaterialspec() 
    {
        return materialspec;
    }
    public void setMeasdoc(String measdoc) 
    {
        this.measdoc = measdoc;
    }

    public String getMeasdoc() 
    {
        return measdoc;
    }
    public void setNastnum(Integer nastnum) 
    {
        this.nastnum = nastnum;
    }

    public Integer getNastnum() 
    {
        return nastnum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTaxPrice(BigDecimal taxPrice) 
    {
        this.taxPrice = taxPrice;
    }

    public BigDecimal getTaxPrice() 
    {
        return taxPrice;
    }
    public void setTax(BigDecimal tax) 
    {
        this.tax = tax;
    }

    public BigDecimal getTax() 
    {
        return tax;
    }

    public String getPkMaterial() {
        return pkMaterial;
    }

    public void setPkMaterial(String pkMaterial) {
        this.pkMaterial = pkMaterial;
    }

    public String getStash() {
        return stash;
    }

    public void setStash(String stash) {
        this.stash = stash;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseId", getPurchaseId())
            .append("code", getCode())
            .append("name", getName())
            .append("materialspec", getMaterialspec())
            .append("measdoc", getMeasdoc())
            .append("nastnum", getNastnum())
            .append("price", getPrice())
            .append("taxPrice", getTaxPrice())
            .append("tax", getTax())
            .append("createTime", getCreateTime())
            .toString();
    }
}
